import request from '@/utils/request'

// 查询平台信息列表
export function listInformation(query) {
  return request({
    url: '/system/information/list',
    method: 'get',
    params: query
  })
}

// 查询平台信息详细
export function getInformation(informationId) {
  return request({
    url: '/system/information/' + informationId,
    method: 'get'
  })
}

// 新增平台信息
export function addInformation(data) {
  return request({
    url: '/system/information',
    method: 'post',
    data: data
  })
}

// 修改平台信息
export function updateInformation(data) {
  return request({
    url: '/system/information',
    method: 'put',
    data: data
  })
}

// 删除平台信息
export function delInformation(informationId) {
  return request({
    url: '/system/information/' + informationId,
    method: 'delete'
  })
}

// 导出平台信息
export function exportInformation(query) {
  return request({
    url: '/system/information/export',
    method: 'get',
    params: query
  })
}